﻿/*
 * Created by SharpDevelop.
 * User: XPMUser
 * Date: 11/02/2011
 * Time: 12:44
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Windows.Input;

namespace KDG.FoldersSize4
{
	/// <summary>
	/// Description of RelayNamedCommand.
	/// </summary>
	public class RelayNamedCommand : RelayCommand
	{
		public string Name { get; set; }
		public string Description { get; set; }
		public ICommand Action
		{ 
			get
			{
				return this;
			}
		}
		
		public RelayNamedCommand(string Name, Action<object> execute)
            : this(Name, execute, null)
        {
        }

		public RelayNamedCommand(string Name, Action<object> execute, Predicate<object> canExecute):base(execute, canExecute)
        {
            this.Name = Name;
        }
	}
}
